package com.ph.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ph.pojo.Role;
import com.ph.mapper.RoleMapper;
import com.ph.service.RoleService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {
    @Override
    public List<Role> findByTree() {
        return baseMapper.findByTree(0);
    }
}
